#ifndef UPLOADINTERFACE_H__
#define UPLOADINTERFACE_H__
#include "Interface.h"

#define SLICESIZE (128*1024)

struct UploadHttpTaskData ;

class IUploadRecv //:public IRecv
{
public:
	virtual void OnUploadError(ErrorType)=0;
	virtual void OnFileSend(UploadHttpTaskData *)=0;
	virtual void OnReturn(char* pBuf,int nLen)=0;
};

struct UploadHttpTaskData :public HttpTaskData
{

	IUploadRecv* pUR;
	CString strFilePath;
	LONGLONG nFileSize;
	LONGLONG nFileHasSended;
	CString strMimeTail;
	bool bSendFinish;

	LONGLONG nCurNum;
	LONGLONG nTotalNum;
	LONGLONG nSliceSize;
};


#endif